/**
 * ...
 * @author Thot
 */

function LoadMapsCommand(){}; 
POO.extend( LoadMapsCommand, Command );



LoadMapsCommand.prototype.execute = function( p_notificationType, p_data )
{
	
	var facade = ApplicationFacade.getInstance(); 
	var mapProxy = facade.getProxy( MapProxy.NAME );
	var vos = mapProxy.getData();
	
	var i = 0;
	var max = vos.length;
	
	facade.sendNotification( ApplicationNotification.DISPLAY_MAPS );
	
	for( i = 0; i < max; i++ )
	{
		facade.sendNotification( ApplicationNotification.SELECT_MAP, vos[i].name );
	}
	
};